﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.ExtentionMethods;

namespace Happy.Activities.Domain.WorkflowInstances
{
    /// <summary>
    /// 流程运行上下文。
    /// </summary>
    public sealed class WorkflowContext
    {
        internal WorkflowContext(WorkflowInstance workflowInstance, IDictionary<string, object> args)
        {
            this.WorkflowInstance = workflowInstance;
            this.Agrs = args;
        }

        /// <summary>
        /// 流程实例。
        /// </summary>
        public WorkflowInstance WorkflowInstance { get; private set; }

        /// <summary>
        /// 流程参数
        /// </summary>
        public IDictionary<string, object> Agrs { get; private set; }
    }
}
